package 小实验;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

public class HashMap遍历 {
    public static void main(String[] args) {
        Map map = new HashMap<String,Integer>();
        map.put("1",1);
        map.put("1",2);
        map.put("1",3);
        Iterator iterator = map.entrySet().iterator();
        while(iterator.hasNext()){
            System.out.println(iterator.next());
        }

    }
}

